package com.example.demo.dao;

import com.example.demo.model.Person;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author hankChan
 *         25/10/2017.
 */
@Repository("personRepository")
public interface PersonRepository extends JpaRepository<Person, Long> {

    Person findOneByName(String name);

}
